Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

4.5K
Views
How do I get the creation date of a mentioned player [DISCORD.JS V13]

Note: I'm using v13 of "discord.js".


This is the command that I currently have:

if (command === 'check') {
    if (message.member.permissions.has(['KICK_MEMBERS'])) {
      let mentioned = message.mentions.users.first();
      let name = mentioned.username

      message.channel.send(`Account name: ${name}.`) 
      message.channel.send(`Account ID: ${mentioned.user.}`)

    } else if (!message.member.permissions.has(
    ['KICK_MEMBERS'])) {
      message.channel.send('You do not have permissions to do this command!')

    } else {
      message.channel.send('An error has occured while attempting to run the command.') 
    }   }

The let mentioned = message.mentions.users.first(); gets the mentioned user


This is how you say the command:

!check @Downrest


Okay, so here's my question. How do I get the creation date of mentioned?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

According to the docs, you can see in the User class that you have a property called createdAt that returns a Date, so mentioned.createdAt should return the creation date of the user.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!